<?xml version="1.0"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
	http://www.springframework.org/schema/context
	http://www.springframework.org/schema/context/spring-context-3.0.xsd">
	<bean id="attachmentDAO"
		class="com.base.attachment.service.impl.AttachmentDAO">
		<property name="sessionFactory" ref="sessionFactory" />
	</bean>
	<bean id="attachmentStorer"
		class="com.base.attachment.service.impl.AttachmentFileStorer">
		<property name="rootPath" value="${attachment.path}" />
	</bean>
	<bean id="attachmentIndexer"
		class="com.base.attachment.service.impl.CompassTaskAttachmentIndexer">
		<property name="attachmentDAO" ref="attachmentDAO" />
		<!--<property name="taskDAO" ref="taskDAO"></property>
		--><property name="attachmentStorer" ref="attachmentStorer" />
	</bean>
	<bean id="nullIndexer"
		class="com.base.attachment.service.impl.NullAttachmentIndexer"></bean>
	<bean id="attachmentSrv"
		class="com.base.attachment.service.impl.AttachmentService">
		<property name="maxFileSize" value="${attachment.maxFileSize}"></property>
		<property name="attachmentIndexer" ref="nullIndexer" />
		<property name="attachmentDAO" ref="attachmentDAO" />
		<property name="attachmentStorer" ref="attachmentStorer" />
	</bean>
	<bean id="attchmentIndexerTaskHandler"
		class="com.base.attachment.service.AttachmentIndexerTaskHandler">
		<property name="attachmentStorer" ref="attachmentStorer" />
		<property name="attachmentDAO" ref="attachmentDAO" />
	</bean>
	<bean id="deleteAttachmentInterceptor"
		class="com.base.attachment.interceptor.DeleteAttachmentInterceptor">
		<property name="attachmentServcie" ref="attachmentSrv" />
	</bean>
</beans>